const models = {
  'account.move': {
    extend: BaseClass => {
      class cls extends BaseClass {
        action_post() {
          const data = this.call('action_post');
          return data;
        }
      }

      cls.post = async (id,fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'post',
          args: [ id ],
          kwargs,
        }, fields );
      }

      cls.button_cancel = async (id,fields={}, kwargs={}) => {
        return cls.call_as_write_read({
          method: 'button_cancel',
          args: [ id ],
          kwargs,
        }, fields );

      }

      return cls;
    },
  },

//    'account.move.line': {},
//    'account.partial.reconcile': {},
//    'account.full.reconcile': {},
}

export default {
  models,
};
